import { location_href } from '../../../../../global/Func/location_href';
import { cur_event_check } from '../../../../global_comps/Classes/cla_event_check';
import { forBindEventThis } from '../../../../global_comps/Func/forBindEventThis';
import { user_upload_dataMana } from './cla_user_upload_dataMana';

const user_upload_operateTag = 'user_upload_operate';

export class user_upload_operate extends user_upload_dataMana {
  get [Symbol.toStringTag]() {
    return user_upload_operateTag;
  }

  constructor() {
    super();

    forBindEventThis(this);

    this.eventM.addEventListen(
      this.dom_border,
      'click',
      this.eventBind.border_left_click
    );
  }

  /**
   * 左键 单击 跳转
   */
  border_left_click(event: MouseEvent) {
    if (!cur_event_check.set_cur_event(event).left_click().result) {
      return;
    }

    location_href('upload');
  }
}
